import { request } from "../../utils/request";

export const list=(data:API.Staff.List)=>request.post<PageResult<UI.Staff>>('/staff/list',data)
export const dimission=(id:number)=>request.get<null>(`/staff/dimission/${id}`)
export const reinstate=(id:number)=>request.get<null>(`/staff/reinstate/${id}`)
export const add=(data:API.Staff.Add)=>request.post<number>('/staff/add',data)
export const update=(data:API.Staff.Update)=>request.post<number>('/staff/update',data)
